
//
//  JSTHomePageModel.m
//  KYKJPackDemo
//
//  Created by 01 on 16/11/11.
//  Copyright © 2016年 蔡正军. All rights reserved.
//

#import "JSTHomePageModel.h"

@implementation JSTHomePageModel
//web广告点击跳转
- (void) createWebViewAdvertOclick:(NSDictionary *)dic
{
    NSMutableDictionary *dict = [NSMutableDictionary dictionary];
    dict[@"event"] = @"click";
    [JSTServer requestPostStatisticsData:dict postInterface:dic[@"url"] dataDic:nil errorStr:nil];
    [self createreStrict:dic];
}
//原生广告点击跳转
- (void) createOtherAdvertOclick:(NSDictionary *)dic
{
    [self createWebViewAdvertOclick:dic];
}
#pragma mark 处理事件及请求

- (void) createreStrict:(NSDictionary *)dic
{
    NSString *url = [NSString stringWithFormat:@"%@",[dic valueForKey:@"apkurl"]];
    NSLog(@"实例化新webView 跳转");
    if (!self.isRead) {
        if (_delegate && [_delegate respondsToSelector:@selector(changePage:dataDic:)]) {
            [_delegate changePage:url dataDic:dic];
            self.isRead = NO;
        }
    }
}
@end
@implementation JSTCacheModel

@end
